package C_AdapterMode;

/**
 * Created by zc on 2017/3/12.
 * 笔记本
 */
public class PersonalComputer {
    /**
     * 三项插座
     */
    private ThreePlugIf threePlug;

    public PersonalComputer(ThreePlugIf threePlug) {
        this.threePlug = threePlug;
    }

    /**
     * 使用插座充电
     */
    public void charge() {
        threePlug.powerWithThreePlug();
    }

}
